package ${package}.core.service;

import ${package}.base.entity.${className};
import ${package}.base.request.pc.${lowerClassName}.${className}AddSTO;
import ${package}.base.request.pc.${lowerClassName}.${className}ModifySTO;
import ${package}.base.request.pc.${lowerClassName}.${className}PageSTO;
import ${package}.base.response.pc.${lowerClassName}.${className}PageDTO;
import ${package}.common.entity.B;
import ${package}.common.entity.R;
import ${package}.common.entity.P;
import ${package}.base.request.IdListSTO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @description ${tableComment}-服务接口
* @author ${author}
* @date ${date}
* @website https://gitee.com/sunalee/fastboot-vue
**/
public interface ${className}Service extends IService<${className}>{

    /**
    * 查询数据分页
    * @param sto 条件
    * @return P<${className}PageDTO>
    */
    P<${className}PageDTO> queryPage(${className}PageSTO sto);

    /**
     * 根据ID查询
     * @param ${pkLowerColName}
     * @return R<${className}>
     */
    R<${className}> findById(${pkColumnType} ${pkLowerColName});

    /**
    * 创建
    * @param sto
    * @return R<${className}>
    */
    R<${className}> add(${className}AddSTO sto);

    /**
    * 编辑
    * @param sto
    * @return B
    */
    B modify(${className}ModifySTO sto);

    /**
    * 多选删除
    * @param sto
    * @return B
    */
    B deleteAll(IdListSTO sto);

}